import * as types from 'store/modules/types'
const mutations = {
  // 滚动
  // [types.SCROLL] (state, payload) {
  //   state.scroll = payload
  // },
  // 设置头部标题
  [types.SETHEADTITLE] (state, payload) {
    state.setHeadTitle = payload
  },
  // 获取地理位置
  [types.GET_LOCATION](state,payload){
    state.location = JSON.parse(payload)
  },
  // 获取微信code
  [types.GET_WX_CODE](state,payload){
    state.wxcode = payload
  },
  // loading 状态
  [types.UPDATE_LOADING_STATUS](state,payload){
    state.isLoading = payload.isLoading
  },
  // 设置二维码返回值
  [types.SET_QCODE](state,payload){
    state.qcode = payload
  },
  [types.SET_BIND_PHONE](state,payload){
    state.cellphone = payload
  },
  // 设置商户绑定状态
  [types.SET_SHOP_BIND_STATUS](state,payload){
    state.shopStatus = payload
  },
  [types.SET_BP](state,payload){
    state.bp = payload
  }
}
export default mutations
